import {FetchService} from "@/utils/request";
const fetchService = new FetchService();
import cookies from 'js-cookie'
export function getToken(data:any){
    return fetchService.post("/system/auth/token",data);
}

export function getUserInfo(){
    const token = cookies.get("token");
    return fetchService.get("/system/auth/userInfo",{
        token:token
    });
}

export function getMenu(){{
    const token = cookies.get("token");
    return fetchService.get("/system/auth/userMenu",{});
}}